package com.betfair.www.publicapi.v3.BFGlobalService;

public class BFGlobalServiceProxy implements com.betfair.www.publicapi.v3.BFGlobalService.BFGlobalService_PortType {
  private String _endpoint = null;
  private com.betfair.www.publicapi.v3.BFGlobalService.BFGlobalService_PortType bFGlobalService_PortType = null;
  
  public BFGlobalServiceProxy() {
    _initBFGlobalServiceProxy();
  }
  
  public BFGlobalServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initBFGlobalServiceProxy();
  }
  
  private void _initBFGlobalServiceProxy() {
    try {
      bFGlobalService_PortType = (new com.betfair.www.publicapi.v3.BFGlobalService.BFGlobalService_ServiceLocator()).getBFGlobalService();
      if (bFGlobalService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)bFGlobalService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)bFGlobalService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (bFGlobalService_PortType != null)
      ((javax.xml.rpc.Stub)bFGlobalService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.betfair.www.publicapi.v3.BFGlobalService.BFGlobalService_PortType getBFGlobalService_PortType() {
    if (bFGlobalService_PortType == null)
      _initBFGlobalServiceProxy();
    return bFGlobalService_PortType;
  }
  
  
}